package de.fhkl.android.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class Setting {
	public static final String PREFS_NAME = "FHINFO";
	private Context context;
	private SharedPreferences setting;
	private SharedPreferences.Editor editor;

	public Setting(Context context) {
		this.context = context;
		setting = this.context.getSharedPreferences(PREFS_NAME, 0);
		editor = setting.edit();
	}

	public String getString(String key) {
		return setting.getString(key, null);
	}

	public boolean getBoolean(String key) {
		return setting.getBoolean(key, false);
	}
	
	public String getPassword(String key){
		String password=setting.getString(key, "");
		
		return setting.getString(key, "");
	}
}
